package com.sale.goods.dubbo;

import com.sale.goods.api.RemoteGoodsCollectionService;
import com.sale.goods.service.IGoodsCollectionService;
import lombok.RequiredArgsConstructor;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

/**
 * 付款单dubbo服务
 */
@RequiredArgsConstructor
@DubboService
@Service
public class RemoteGoodsCollectionServiceImpl implements RemoteGoodsCollectionService {

    private final IGoodsCollectionService goodsCollectionService;
    /**
     * 工作台接口(销售已收款金额)
     */
    @Override
    public String received() {
        return goodsCollectionService.goodsReceived();
    }

    /**
     * 工作台接口(客户欠款金额)
     */
    @Override
    public String arrears() {
        return goodsCollectionService.goodsArrears();
    }
}
